package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员分享表
 * </p>
 *
 * @author duke
 * @since 2019-10-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UsersShare extends Model<UsersShare> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 门店id
     */
    private String shopId;

    /**
     * 分享人id
     */
    private String userId;

    /**
     * 分享时间
     */
    private Date shareTime;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 二次分享赠送积分数量
     */
    private Integer twiceShareIntegral;

    /**
     * 分享赠送积分数量
     */
    private Integer shareIntegral;

    /**
     * 关注送积分数量
     */
    private Integer attentionIntegral;

    /**
     * 点击赠送积分数量
     */
    private Integer clickIntegral;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 积分分享赠送id
     */
    private String integralSharePresentId;

    /**
     * 会员id
     */
    private String clubUsersId;

    /**
     * 二次分享人id
     */
    private String twiceUserId;


    public static final String ID = "id";

    public static final String SHOP_ID = "shop_id";

    public static final String USER_ID = "user_id";

    public static final String SHARE_TIME = "share_time";

    public static final String CLUB_ID = "club_id";

    public static final String TWICE_SHARE_INTEGRAL = "twice_share_integral";

    public static final String SHARE_INTEGRAL = "share_integral";

    public static final String ATTENTION_INTEGRAL = "attention_integral";

    public static final String CLICK_INTEGRAL = "click_integral";

    public static final String CREATE_TIME = "create_time";

    public static final String INTEGRAL_SHARE_PRESENT_ID = "integral_share_present_id";

    public static final String CLUB_USERS_ID = "club_users_id";

    public static final String TWICE_USER_ID = "twice_user_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
